			<div id="main">
				<div id="content">
					<div class="header">
						<h2><?=$shopName?></h2>
					</div>
					<div class="content">
						<p><b>Welcome <?=$characterName?> to my shop. May my armors server you in battle.</b></p>
						<table>
							<tr>
						<?php foreach($shopItems as $id => $i): ?>
								<td>
									<?=form_open('character/shop/' . $shopId)?>
										<input type="hidden" name="item-id" value="<?=$i['ID']?>">
										<input type="hidden" name="action" value="buy">
										<input class="item" type="image" rel="tooltip" src="<?=base_url()?>resources/img/<?=$i['image']?>" border=0 alt="Buy" title="<?=$i['name']?> - <?=$i['body_zone']?> <br> <?=$i['stat_type1']?>: <?=$i['stat_value1']?><?php if($i['stat_type2'] != 'empty'): ?> <br> <?=$i['stat_type2']?>: <?=$i['stat_value2']?><?php endif;?><?php if($i['stat_type3'] != 'empty'): ?> <br> <?=$i['stat_type3']?>: <?=$i['stat_value3']?><?php endif;?><?php if($i['stat_type4'] != 'empty'): ?> <br> <?=$i['stat_type4']?>: <?=$i['stat_value4']?><?php endif;?> <br> Buy Price: <?=$i['buyvalue']?>" />
									<?=form_close()?>
								</td>
						<?php endforeach;?>
							</tr>
						</table>
						<br />
						<h2>Your Inventory</h2>
						<?php if(!is_null($inventory)): ?>
						<table>
							<tr>
						<?php foreach($inventory as $id => $i): ?>
						<?php if($id%5 == 0 && $id > 0): ?>
							</tr>
							<tr>
						<?php endif;?>
								<td>
									<?=form_open('character/shop/' . $shopId)?>
										<input type="hidden" name="item-id" value="<?=$i['item_id']['ID']?>">
										<input type="hidden" name="action" value="sell">
										<input class="item" type="image" rel="tooltip" src="<?=base_url()?>resources/img/<?=$i['item_id']['image']?>" border=0 alt="Buy" title="<?=$i['item_id']['name']?> - <?=$i['item_id']['body_zone']?> <br> <?=$i['item_id']['stat_type1']?>: <?=$i['item_id']['stat_value1']?><?php if($i['item_id']['stat_type2'] != 'empty'): ?> <br> <?=$i['item_id']['stat_type2']?>: <?=$i['item_id']['stat_value2']?><?php endif;?><?php if($i['item_id']['stat_type3'] != 'empty'): ?> <br> <?=$i['item_id']['stat_type3']?>: <?=$i['item_id']['stat_value3']?><?php endif;?><?php if($i['item_id']['stat_type4'] != 'empty'): ?> <br> <?=$i['item_id']['stat_type4']?>: <?=$i['item_id']['stat_value4']?><?php endif;?> <br> Sell Price: <?=$i['item_id']['sellvalue']?> <br> Quantity: <?=$i['quantity']?> " />
									<?=form_close()?>
								</td>
						<?php endforeach;?>
							</tr>
						</table>
						<?php else: ?>
						<p><b>You don't have any items.</b></p>
						<?php endif; ?>
					</div>
					<div class="footer"></div>
				</div>
